package com.skydonkey.pojo.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class VideoInfo {

    private Long uid;   //上传者的uid
    private Long videoId;    //视频id
    private String videoKey;    //视频key
    private String videoUrl;    //视频url
    private String coverKey;    //封面key
    private String coverUrl;    //封面url
    private String title;   //标题
    private String permission;  //权限
    private Boolean publishNow; //是否立即发布
    private Boolean joinVideoAct;   //是否参与活动
    private Long duration;  //视频时长

    public Long getDuration() {
        return duration;
    }

    public VideoInfo setDuration(Long duration) {
        this.duration = duration;
        return this;
    }

    @JsonFormat(
            shape=JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    private Timestamp createTime;    //创建时间
    @JsonFormat(
            shape=JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8")
    private Timestamp updateTime;    //最后一次修改时间
    private Boolean isDelete;   //是否已经删除
    private String desc;    //视频简介

    public String getDesc() {
        return desc;
    }

    public VideoInfo setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    public Long getUid() {
        return uid;
    }

    public VideoInfo setUid(Long uid) {
        this.uid = uid;
        return this;
    }

    public Long getVideoId() {
        return videoId;
    }

    public VideoInfo setVideoId(Long videoId) {
        this.videoId = videoId;
        return this;
    }

    public String getVideoKey() {
        return videoKey;
    }

    public VideoInfo setVideoKey(String videoKey) {
        this.videoKey = videoKey;
        return this;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public VideoInfo setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
        return this;
    }

    public String getCoverKey() {
        return coverKey;
    }

    public VideoInfo setCoverKey(String coverKey) {
        this.coverKey = coverKey;
        return this;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public VideoInfo setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public VideoInfo setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getPermission() {
        return permission;
    }

    public VideoInfo setPermission(String permission) {
        this.permission = permission;
        return this;
    }

    public Boolean getPublishNow() {
        return publishNow;
    }

    public VideoInfo setPublishNow(Boolean publishNow) {
        this.publishNow = publishNow;
        return this;
    }

    public Boolean getJoinVideoAct() {
        return joinVideoAct;
    }

    public VideoInfo setJoinVideoAct(Boolean joinVideoAct) {
        this.joinVideoAct = joinVideoAct;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public VideoInfo setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
        return this;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public VideoInfo setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public VideoInfo setDelete(Boolean delete) {
        isDelete = delete;
        return this;
    }

    @Override
    public String toString() {
        return "VideoInfo{" +
                "uid=" + uid +
                ", videoId=" + videoId +
                ", videoKey='" + videoKey + '\'' +
                ", videoUrl='" + videoUrl + '\'' +
                ", coverKey='" + coverKey + '\'' +
                ", coverUrl='" + coverUrl + '\'' +
                ", title='" + title + '\'' +
                ", permission='" + permission + '\'' +
                ", publishNow=" + publishNow +
                ", joinVideoAct=" + joinVideoAct +
                ", duration=" + duration +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                ", desc='" + desc + '\'' +
                '}';
    }
}
